//
//  UUIntentOrderModel.h
//  UUCharterSupplier
//
//  Created by ZhangAo on 28/02/2018.
//  Copyright © 2018 UUCharter. All rights reserved.
//

#import <UUFoundation/UUBaseModel.h>
#import "UUIntentOrderConstants.h"

@interface UUIntentOrderBidModel : UUBaseModel

@property (nonatomic, strong) NSDate *createTime;
@property (nonatomic, strong) NSNumber *price;
@property (nonatomic, assign) UUIntentOrderBidStatus status;

@end

///////////////////////////////////////////////////////////////

@interface UUIntentOrderModel : UUBaseModel

@property (nonatomic, strong) NSNumber *id;
@property (nonatomic, strong) NSNumber *carCategoryId;
@property (nonatomic, strong) NSDate *departTime;
@property (nonatomic, strong) NSNumber *departCityId;
@property (nonatomic, copy) NSString *departure;
@property (nonatomic, copy) NSString *arrival;
@property (nonatomic, assign) CGFloat days;
@property (nonatomic, assign) NSInteger carNum;
@property (nonatomic, assign) UUIntentOrderStatus status;
@property (nonatomic, assign) BOOL isBid;

@end


///////////////////////////////////////////////////////////////

@interface UUIntentOrderDetailModel : UUIntentOrderModel

@property (nonatomic, strong) NSNumber *arriveCityId;
@property (nonatomic, copy) NSString *approach;
@property (nonatomic, copy) NSString *extra;
@property (nonatomic, copy) NSArray<UUIntentOrderBidModel *> *bids;
@property (nonatomic, strong) NSNumber *orderId;
@property (nonatomic, strong) NSNumber *supplierId;

@end

///////////////////////////////////////////////////////////////

@interface UUIntentOrderHistoryModel : UUIntentOrderModel

@property (nonatomic, assign) NSTimeInterval updateTime;

@end
